package com.aspose.cells;

class zgg extends zgh {
   private boolean b;
   private boolean c;
   private boolean d;

   zgg(zaay var1, zahz var2, boolean var3, boolean var4, boolean var5) {
      super(var1, var2);
      this.b = var3;
      this.c = var4;
      this.d = var5;
   }

   protected boolean a(zp var1) {
      return this.b && zbbj.c(var1.l(0));
   }

   protected boolean a(zyi var1) {
      if (!this.c) {
         if (this.d) {
            if (!var1.i()) {
               var1.a(this.a);
            }

            return var1.h();
         } else {
            return false;
         }
      } else {
         if (!var1.i()) {
            var1.a(this.a);
         }

         if (var1.g()) {
            return true;
         } else {
            return this.d && var1.h();
         }
      }
   }
}
